<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>提现</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<meta
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
			name="viewport">
		<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
		<meta content="no-cache" http-equiv="pragma">
		<meta content="0" http-equiv="expires">
		<meta content="telephone=no, address=no" name="format-detection">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style"
			content="black-translucent">

		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/admin/css/pintuer.css">
		<script src="<%=request.getContextPath()%>/admin/js/jquery.js"></script>
		<script src="<%=request.getContextPath()%>/admin/js/pintuer.js"></script>


		<style>
body {
	background-color: #F2F2F2;
}
</style>
	</head>
	<body>
		<s:if test="msg=='请输入正确的积分'">
			<script>
	alert("请输入正确的积分");
</script>
		</s:if>
		<s:if test="msg=='没有可提现的积分'">
			<script>
	alert("没有可提现的金积分");
</script>
		</s:if>
		<s:if test="msg=='fail'">
		<script>
			alert("提现失败请稍后再试");
		</script>
		</s:if>
		<!-- <div class="container"> -->
		<div
			style="position: fixed; top: 0px; width: 100%; background-color: #8FBC8F; height: 120px; color: white;">
			<br/>
			<br/>
			<br/>
			<h3>
				<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可提积分：${team.score}</strong>
			</h3>
			<br/>
		</div>
		<br/>
		<br/>
		<br/>
		<br/>
		<br/>
		<br/>
		<br/>
		<form action="tixian!apply.action" method="post">
			<input type="hidden" name="tixian.sid" value="${team.id}" />
			<input type="hidden" name="team.id" value="${team.id}" />
			<div class="line-big">
				<div class="x12">
					<div class="form-group">
						<div class="field">
							<input oninput="jine(this);" id="applyscore" type="text" class="input input-big"
								data-validate="required:请填写正确的积分,plusinteger:请填写正整数" name="team.score"
								placeholder="输入提现积分,必须是100的整数！" />
						</div>
						<div style="line-height:25px;">提现金额:<span id="money" style="color:red;">0</span>元</div>
					</div>
				</div>
			</div>
			<br/>
			<div class="line-middle">
				<div class="x2"></div>
				<div class="x8">
					<button class="button bg-green  button-block" type="submit" onclick="return checkForm();">
						提交申请
					</button>
				</div>
				<div class="x2"></div>
			</div>
			<br/>
			<br/>
		</form>
		<br/>
		<script type="text/javascript">
			function jine(obj){
				var m = $(obj).val();
				var b;
				if(m!=""){
					b=m*1;
				}else{
					b=0;
				}
				$('#money').html(b/100);
			}
		//提交
			function checkForm(){
				var ss = $('#applyscore').val()*1;
				if(ss%100==0){
					return true;
				}else{
					alert("请输入100的整数!");
					return false;
				}
			}
		</script>
		<s:include value="/w/tmpfoot.jsp"></s:include>
	
	</body>
</html>
